
Page({
  data: {
    css: ['now', ''],
    ishow: [false, true]
  },
  onLoad() {

  },
  tabfn(evt) {
    let index = evt.target.dataset.index
    let css = this.data.css
    let ishow = this.data.ishow.map((item, key) => {
      css[key] = ''
      return true
    })
    css[index] = 'now'
    ishow[index] = false
    this.setData({ ishow,css })
  }
})